package day5;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestHanzihuan {
    public static void main(String[] args) {
        String name="老刘三大范式.zip";
        boolean matches = name.matches("[\u4e00-\u9fcc]+\\.(zip|rar)");
        System.out.println(matches);
        //[^\u4e00-\u9fcc]+\.(zip|rar)   ^   $
        //   matches
//        String str="输入一个字#$#@QSFsdfsdfsdf符串sdlfksdhf";
//        String s=str.replaceAll("[^\\u4e00-\\u9fcc]", "");
//        System.out.println(s);
    }
}
